package com.hospital.doctor.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Patient implements Serializable {
    private int pId;
    private String pName;
    private int pGender;
    private int pAge;
    private String pIdcard;
    private String pStatus;
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    private Date inTime;
    @JsonFormat(pattern = "yyyy-MM-dd kk:mm")
    private Date outTime;
    private int kId;
    private int pBednumber;
    private int dId;
    private String pDiagnosis;
    private String pPhone;
    private String pShebao;
    private String pNation;
    private String pAddress;
    private String pAccount;

    private Department department;
    private Doctor doctor;
    private List<CheckBody> checkBody = new ArrayList<>();
    private List<Round> round = new ArrayList<>();
    private List<Medical> medical = new ArrayList<>();


    public String getpPhone() {
        return pPhone;
    }

    public void setpPhone(String pPhone) {
        this.pPhone = pPhone;
    }

    public String getpShebao() {
        return pShebao;
    }

    public void setpShebao(String pShebao) {
        this.pShebao = pShebao;
    }

    public String getpNation() {
        return pNation;
    }

    public void setpNation(String pNation) {
        this.pNation = pNation;
    }

    public String getpAddress() {
        return pAddress;
    }

    public void setpAddress(String pAddress) {
        this.pAddress = pAddress;
    }

    public String getpAccount() {
        return pAccount;
    }

    public void setpAccount(String pAccount) {
        this.pAccount = pAccount;
    }

    public List<CheckBody> getCheckBody() {
        return checkBody;
    }

    public void setCheckBody(List<CheckBody> checkBody) {
        this.checkBody = checkBody;
    }

    public List<Round> getRound() {
        return round;
    }

    public void setRound(List<Round> round) {
        this.round = round;
    }

    public List<Medical> getMedical() {
        return medical;
    }

    public void setMedical(List<Medical> medical) {
        this.medical = medical;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public int getpGender() {
        return pGender;
    }

    public void setpGender(int pGender) {
        this.pGender = pGender;
    }

    public int getpAge() {
        return pAge;
    }

    public void setpAge(int pAge) {
        this.pAge = pAge;
    }

    public String getpIdcard() {
        return pIdcard;
    }

    public void setpIdcard(String pIdcard) {
        this.pIdcard = pIdcard;
    }

    public String getpStatus() {
        return pStatus;
    }

    public void setpStatus(String pStatus) {
        this.pStatus = pStatus;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    public Date getOutTime() {
        return outTime;
    }

    public void setOutTime(Date outTime) {
        this.outTime = outTime;
    }

    public int getkId() {
        return kId;
    }

    public void setkId(int kId) {
        this.kId = kId;
    }

    public int getpBednumber() {
        return pBednumber;
    }

    public void setpBednumber(int pBednumber) {
        this.pBednumber = pBednumber;
    }

    public int getdId() {
        return dId;
    }

    public void setdId(int dId) {
        this.dId = dId;
    }

    public String getpDiagnosis() {
        return pDiagnosis;
    }

    public void setpDiagnosis(String pDiagnosis) {
        this.pDiagnosis = pDiagnosis;
    }
}
